﻿using System.Web;
using System.Web.Optimization;

namespace WisPortal
{
    public class BundleConfig
    {
        public static void AddDefaultIgnorePatterns(IgnoreList ignoreList)
        {
            ignoreList.Ignore("*.min.js", OptimizationMode.WhenEnabled);
            ignoreList.Ignore("*.min.css", OptimizationMode.WhenEnabled);
            ignoreList.Ignore("*.intellisense.js");
            ignoreList.Ignore("*-vsdoc.js");
            ignoreList.Ignore("*.debug.js", OptimizationMode.WhenEnabled);            
        }


        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.IgnoreList.Clear();
            AddDefaultIgnorePatterns(bundles.IgnoreList);

            Bundle jsBundle = new ScriptBundle("~/bunles/js");
            jsBundle.Include("~/Scripts/js/jquery-migrate.min")
                .Include("~/Scripts/js/jquery.debouncedresize.min.js")
                .Include("~/Scripts/js/jquery.actual.min.js")
                .Include("~/Scripts/js/jquery_cookie.min.js")
                .Include("~/Content/themes/base/bootstrap/js/bootstrap.js")
                .Include("~/Scripts/js/bootstrap.plugins.min.js")
                .Include("~/Scripts/lib/qtip2/jquery.qtip.min.js")
                .Include("~/Scripts/lib/jBreadcrumbs/js/jquery.jBreadCrumb.1.1.min.js")
                .Include("~/Scripts/lib/colorbox/jquery.colorbox.min.js")
                .Include("~/Scripts/js/ios-orientationchange-fix.js")
                .Include("~/Scripts/lib/antiscroll/antiscroll.js")
                .Include("~/Scripts/lib/antiscroll/jquery-mousewheel.js")
                .Include("~/Scripts/lib/UItoTop/jquery.ui.totop.min.js")
                .Include("~/Scripts/js/selectNav.js")
                .Include("~/Scripts/js/gebo_common.js")
                .Include("~/Scripts/lib/jquery-ui/jquery-ui-1.10.0.custom.min.js")
                .Include("~/Scripts/js/forms/jquery.ui.touch-punch.min.js")
                .Include("~/Scripts/js/jquery.imagesloaded.min.js")
                .Include("~/Scripts/js/jquery.wookmark.js")
                .Include("~/Scripts/js/jquery.mediaTable.min.js")
                .Include("~/Scripts/js/jquery.peity.min.js")
                .Include("~/Scripts/lib/flot/jquery.flot.min.js")
                .Include("~/Scripts/lib/flot/jquery.flot.resize.min.js")
                .Include("~/Scripts/lib/flot/jquery.flot.pie.min.js")
                .Include("~/Scripts/lib/fullcalendar/fullcalendar.min.js")
                .Include("~/Scripts/lib/list_js/list.min.js")
                .Include("~/Scripts/lib/list_js/plugins/paging/list.paging.js");
            
            //JS                
            bundles.Add(jsBundle);

            //Style
            bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/Content/themes/base/bootstrap/css/bootstrap.min.css",
                "~/Content/themes/base/bootstrap/css/bootstrap-responsive.min.css",
                "~/Scripts/lib/jBreadcrumbs/css/BreadCrumb.css",
                "~/Scripts/lib/qtip2/jquery.qtip.min.css",
                "~/Scripts/lib/colorbox/colorbox.css",
                "~/Scripts/lib/google-code-prettify/prettify.css",
                "~/Scripts/lib/sticky/sticky.css",
                "~/Scripts/lib/fullcalendar/fullcalendar_gebo.css",
                "~/Content/themes/base/img/splashy/splashy.css",
                "~/Content/themes/base/img/flags/flags.css",
                "~/Content/themes/base/css/style.css"));
        }
    }
}